package com.example.quartz.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

//Feign的远程调用，定义接口，底层使用AOP，自动生成接口的实现类
@FeignClient(name = "cinema-order",contextId = "orderBillClient")  //被调用模块的服务名
public interface OrderBillFeignClient {

    //    删除超时未支付的无效订单
    @GetMapping("/sysBill/clearInvalidOrder")
    void clearInvalidOrder();

}
